Hi Tom,
Sorry for the long list of questions, but I accumulated these and could not find an answer for these.
I am using kflop and kanalaog with a 3 axis gantry cnc router where axis 3 is slaved to axis 0. All axis are ac servos with encoders.
I am having problems getting the master/slave to work together. I am using the latest 4.30 which I downloaded last week from the dynomotion site.
A few questions:
1. In the sample Init3Analog.c file. Do I need the define QA and QB as well as the variables int BitA .. double Factor=0? What are these for? What other variables would I need in the init.c other than axis definitions and setting bits to enable the axis outputs and drives?
2. Do I enable axis 3 which is slaved to axis 0 in the init.c file?
3. Do I Set DefineCoorSystem as 0,1,2,-1 ? or do I add axis 3. I recall from a post that you state not to include axis 3 as it may lead to strange things.
4. How do I know what minor version of 4.30 I am using? I understand there were issues with 4.30g for master/slave but you gave a link to a 4.30h. Is the version on the download page 4.30 h or later and if so does it include the fix for master/slave in 4.30 h?
5. Is it important to set all the axis at position 0 in the init.c (I have not gotten around to setting up homing yet)? Can it be that axis 0 and axis3 have different positions on startup and this may cause a problem? Can I use Pos<N>=<P> to set both axis 0 and 3 to zero and include this in my init.c file for testing purposes? Once I get to homing I presume that is where you then set the axis position to 0 or whatever other value I choose in the homing.c file.
6. In kmotion, is there a way to slave axis 0 and axis 3 to test them? If not, how do you test the master/slave axis to set the pid values? I can test one side but the other side drags which most likely leads to false results.
7. Do you have a step by step guide or a more detailed post or link for how to set up the init.c file? I understand the general idea but the subtleties and exceptions are where I am getting stuck at times.
8. I am using dac7 as spindle output with NOINPUT and DACSERVO as output. This is connected to a vfd drive that is running open loop for the spindle and taking a +-10v signal. Do I need to enable axis 7 in the init.c file? Do I need to provide the axis configuration in the init.c file - there is no need for pid or limits etc.?
9. To turn the spindle on, I presume that I issue a GCODE G97 S1024 command for full spindle speed if I set up my spindle for 0 to 1024 resolution in kmotioncnc toolsetup?
10. Lastly (for now) I plan to use some Hamlim 55110 led hall proximity sensors as limit and homing switch - two per axis so a total of 8 (datasheet link:
http://www.hamlin.com/specsheets/55110%20IssueAE.pdf) and plan to use these with kanalog jp12 3.3v inputs as + and - limit switches. Each require 20ma to work and need at least 3.8v so I would be using vdd5 as power and connecting the other end (the blue out wire) to jp12 inputs which are 3.3v. Will the onboard vdd5 be sufficient or should I connect to the 5v power supply? Will putting a 200 ohm series resistor with the input be all that is required as the inputs are 3.3v? I am still learning about pull-up pull-down resistors. Are any of these needed?
Thanks in advance for the information.
Darren